package com.fanghaoran.entity;

/**
 * @Author: win11
 * @Date: 2023/03/28/1:27
 * @Description:
 */
public class Book {
    private int id;
    private String name;

    public Book() {
    }

    public Book(int id, String name) {
        this.id = id;
        this.name = name;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id 书id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name 书名
     */
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Book{id = " + id + ", name = " + name + "}";
    }
}
